<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.12.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Geo3DML-CPP: include/geo3dml/SceneStyle.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">Geo3DML-CPP
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.12.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_acc7f90eaa859a07dba55a8b62805b11.html">geo3dml</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">SceneStyle.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_scene_style_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;<a class="code" href="_light_8h.html">Light.h</a>&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &lt;mutex&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacegeo3dml.html">geo3dml</a> {</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="foldopen" id="foldopen00010" data-start="{" data-end="};">
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html">   10</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classgeo3dml_1_1_scene_style.html">SceneStyle</a> {</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#acbb1e828f5e387f2ff69ff1351f7c0ff">   12</a></span>        <a class="code hl_function" href="classgeo3dml_1_1_scene_style.html#acbb1e828f5e387f2ff69ff1351f7c0ff">SceneStyle</a>();</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#a7088b4b98dc32f618f503abf33ae7b8a">   13</a></span>        <span class="keyword">virtual</span> <a class="code hl_function" href="classgeo3dml_1_1_scene_style.html#a7088b4b98dc32f618f503abf33ae7b8a">~SceneStyle</a>();</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#a115605d1781f112b807836cd855a7824">   16</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_scene_style.html">SceneStyle</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_scene_style.html#a115605d1781f112b807836cd855a7824">SetBackgroundColor</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a>&amp; c);</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#ac42b5fa0a22fd9fb1af6bcbee030da72">   17</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_function" href="classgeo3dml_1_1_scene_style.html#ac42b5fa0a22fd9fb1af6bcbee030da72">GetBackgroundColor</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#a5df95a3315f827bf4d8864ed2d39e62f">   22</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_scene_style.html">SceneStyle</a>&amp; <a class="code hl_function" href="classgeo3dml_1_1_scene_style.html#a5df95a3315f827bf4d8864ed2d39e62f">AddLight</a>(<span class="keyword">const</span> <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a>&amp; lit);</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#a511865004f251076b520981105921e0d">   23</a></span>        <span class="keywordtype">int</span> <a class="code hl_function" href="classgeo3dml_1_1_scene_style.html#a511865004f251076b520981105921e0d">GetLightCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#ac6344fd7e411e5de6485732b63094ebd">   24</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_light.html">Light</a> <a class="code hl_function" href="classgeo3dml_1_1_scene_style.html#ac6344fd7e411e5de6485732b63094ebd">GetLightAt</a>(<span class="keywordtype">int</span> i) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    <span class="keyword">private</span>:</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#a786c862bd5b53c9fbb279df3b98d91a4">   28</a></span>        <a class="code hl_class" href="classgeo3dml_1_1_color.html">Color</a> <a class="code hl_variable" href="classgeo3dml_1_1_scene_style.html#a786c862bd5b53c9fbb279df3b98d91a4">color_</a>;</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#af05438e43bf37192d72f2e17987fdc4f">   29</a></span>        std::vector&lt;Light&gt; <a class="code hl_variable" href="classgeo3dml_1_1_scene_style.html#af05438e43bf37192d72f2e17987fdc4f">lights_</a>;</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="classgeo3dml_1_1_scene_style.html#af2cade39cb3f63043977c0825244f373">   30</a></span>        std::recursive_mutex <a class="code hl_variable" href="classgeo3dml_1_1_scene_style.html#af2cade39cb3f63043977c0825244f373">mtx_</a>;</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>    };</div>
</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>}</div>
<div class="ttc" id="a_light_8h_html"><div class="ttname"><a href="_light_8h.html">Light.h</a></div></div>
<div class="ttc" id="aclassgeo3dml_1_1_color_html"><div class="ttname"><a href="classgeo3dml_1_1_color.html">geo3dml::Color</a></div><div class="ttdef"><b>Definition</b> Color.h:5</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_light_html"><div class="ttname"><a href="classgeo3dml_1_1_light.html">geo3dml::Light</a></div><div class="ttdoc">光源配置。</div><div class="ttdef"><b>Definition</b> Light.h:10</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html">geo3dml::SceneStyle</a></div><div class="ttdoc">SceneStyle is thread safe.</div><div class="ttdef"><b>Definition</b> SceneStyle.h:10</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_a115605d1781f112b807836cd855a7824"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#a115605d1781f112b807836cd855a7824">geo3dml::SceneStyle::SetBackgroundColor</a></div><div class="ttdeci">SceneStyle &amp; SetBackgroundColor(const Color &amp;c)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_a511865004f251076b520981105921e0d"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#a511865004f251076b520981105921e0d">geo3dml::SceneStyle::GetLightCount</a></div><div class="ttdeci">int GetLightCount() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_a5df95a3315f827bf4d8864ed2d39e62f"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#a5df95a3315f827bf4d8864ed2d39e62f">geo3dml::SceneStyle::AddLight</a></div><div class="ttdeci">SceneStyle &amp; AddLight(const Light &amp;lit)</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_a7088b4b98dc32f618f503abf33ae7b8a"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#a7088b4b98dc32f618f503abf33ae7b8a">geo3dml::SceneStyle::~SceneStyle</a></div><div class="ttdeci">virtual ~SceneStyle()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_a786c862bd5b53c9fbb279df3b98d91a4"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#a786c862bd5b53c9fbb279df3b98d91a4">geo3dml::SceneStyle::color_</a></div><div class="ttdeci">Color color_</div><div class="ttdef"><b>Definition</b> SceneStyle.h:28</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_ac42b5fa0a22fd9fb1af6bcbee030da72"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#ac42b5fa0a22fd9fb1af6bcbee030da72">geo3dml::SceneStyle::GetBackgroundColor</a></div><div class="ttdeci">Color GetBackgroundColor() const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_ac6344fd7e411e5de6485732b63094ebd"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#ac6344fd7e411e5de6485732b63094ebd">geo3dml::SceneStyle::GetLightAt</a></div><div class="ttdeci">Light GetLightAt(int i) const</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_acbb1e828f5e387f2ff69ff1351f7c0ff"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#acbb1e828f5e387f2ff69ff1351f7c0ff">geo3dml::SceneStyle::SceneStyle</a></div><div class="ttdeci">SceneStyle()</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_af05438e43bf37192d72f2e17987fdc4f"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#af05438e43bf37192d72f2e17987fdc4f">geo3dml::SceneStyle::lights_</a></div><div class="ttdeci">std::vector&lt; Light &gt; lights_</div><div class="ttdef"><b>Definition</b> SceneStyle.h:29</div></div>
<div class="ttc" id="aclassgeo3dml_1_1_scene_style_html_af2cade39cb3f63043977c0825244f373"><div class="ttname"><a href="classgeo3dml_1_1_scene_style.html#af2cade39cb3f63043977c0825244f373">geo3dml::SceneStyle::mtx_</a></div><div class="ttdeci">std::recursive_mutex mtx_</div><div class="ttdef"><b>Definition</b> SceneStyle.h:30</div></div>
<div class="ttc" id="anamespacegeo3dml_html"><div class="ttname"><a href="namespacegeo3dml.html">geo3dml</a></div><div class="ttdef"><b>Definition</b> AbstractMetadata.h:6</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
